package com.wang.jmonkey.common.constant;

/**
 * @Description
 * @Author HeJiawang
 * @Date 2021/5/11 9:42
 */
public class ValidateConstant {

    /**
     *
     */
    public enum ValidateCodeType {
        ImageValidateCodeHandler("imageValidateCodeHandler"),
        MobileSmsValidateCodeHandler("mobileSmsValidateCodeHandler"),
        ;

        private String key;

        ValidateCodeType(String key) {
            this.key = key;
        }

        public String getKey() {
            return key;
        }
    }

    /**
     * 数字图片验证码属性
     */
    public enum ImageProperty {
        ImgWidth(85),
        ImgHeight(39),
        ;

        private Integer key;

        ImageProperty(Integer key) {
            this.key = key;
        }

        public Integer getKey() {
            return key;
        }
    }

    /**
     * 验证码内容个数
     */
    public enum CodeNum {
        ImageCode(6),
        ;

        private Integer key;

        CodeNum(Integer key) {
            this.key = key;
        }

        public Integer getKey() {
            return key;
        }
    }

    /**
     * 验证码过期时间(秒)
     */
    public enum ExpireIn{
        ImageCode(60),
        ;

        private Integer key;

        ExpireIn(Integer key) {
            this.key = key;
        }

        public Integer getKey() {
            return key;
        }
    }
}
